package com.sdtv.basemodule.bean;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @ProjectName: MediunFusion
 * @Package: com.sdtv.basemodule.bean
 * @ClassName: SqlEntityBean
 * @Description: 数据库实体类 --
 * 数据库中都是用同一个表 --是用key -value的形式存储
 * @Author: 小郭同学
 * @CreateDate: 2019-07-04 10:03
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Entity(tableName = "SqlBaseTable")
public class SqlEntityBean {

    /**
     * 构造器 -ROOM框架是用
     */
    public SqlEntityBean() {
    }
//
//    @PrimaryKey(autoGenerate = true)
//    @ColumnInfo(name = "userId")
//    private int userId;


    @PrimaryKey()
    @NonNull
    private String key;

    @ColumnInfo(name = "userValue")
    private String value;

    @ColumnInfo(name = "time")
    private long time;

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
